/* Class39_Sub5_Sub4_Sub3 - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */

public class Class39_Sub5_Sub4_Sub3 extends Renderable {
	public static int[][] anIntArrayArray2233;
	public static JString aClass3_2234;
	public static JString aClass3_2235 = Class39_Sub5_Sub9.createJString(114, "Angreifen");
	public static JString aClass3_2236;
	public static JString aClass3_2237 = Class39_Sub5_Sub9.createJString(126, "und loggen sich dann erneut ein)3");
	public static int anInt2238;
	public static int anInt2239 = -1;
	public static Model[] aClass39_Sub5_Sub4_Sub6Array2240;
	public static Class39_Sub5_Sub4_Sub4_Sub1[] aClass39_Sub5_Sub4_Sub4_Sub1Array2241;
	public static int anInt2242;
	public int anInt2243;
	public static JString aClass3_2244;
	public static int[] anIntArray2245;
	public static JString aClass3_2246;
	public static int[] anIntArray2247;
	public int anInt2248;
	public static JString aClass3_2249;

	public static void method501(byte i) {
		aClass3_2244 = null;
		anIntArrayArray2233 = null;
		aClass3_2246 = null;
		anIntArray2247 = null;
		aClass39_Sub5_Sub4_Sub4_Sub1Array2241 = null;
		aClass3_2236 = null;
		aClass39_Sub5_Sub4_Sub6Array2240 = null;
		aClass3_2235 = null;
		anIntArray2245 = null;
		aClass3_2234 = null;
		aClass3_2249 = null;
		aClass3_2237 = null;
	}

	public Model method489(boolean bool) {
		if (bool != true)
			return null;
		return Class26.method291(-7, anInt2248).method468(anInt2243, true, (byte) -124);
	}

	public static void method502(RSSocket class16, boolean bool, int i) {
		if (Deque.aClass16_923 != null) {
			try {
				Deque.aClass16_923.killThread(-2158);
			} catch (Exception exception) {
				/* empty */
			}
			Deque.aClass16_923 = null;
		}
		Deque.aClass16_923 = class16;
		Class63.method1089(-125, bool);
		CacheArchive.aClass39_Sub5_Sub3_1285 = null;
		Class39_Sub4.anInt1331 = 0;
		Applet_Sub1.aClass39_Sub6_3.currentOffset = 0;
		Class42.aClass39_Sub6_788 = null;
		for (;;) {
			Class39_Sub5_Sub3 class39_sub5_sub3 = (Class39_Sub5_Sub3) CacheIO.aClass19_95.method239(1);
			if (class39_sub5_sub3 == null)
				break;
			Login.aClass19_461.method238(class39_sub5_sub3.hash, class39_sub5_sub3, (byte) -58);
			Class1.anInt31--;
			Class39_Sub5_Sub6.anInt1765++;
		}
		for (;;) {
			Class39_Sub5_Sub3 class39_sub5_sub3 = (Class39_Sub5_Sub3) Class19.aClass19_370.method239(112);
			if (class39_sub5_sub3 == null)
				break;
			Class32.aClass54_583.method992(true, class39_sub5_sub3);
			Class31.aClass19_553.method238(class39_sub5_sub3.hash, class39_sub5_sub3, (byte) -127);
			Class41.anInt766++;
			Canvas_Sub1.anInt21--;
		}
		if (Applet_Sub1.aByte1 != 0) {
			try {
				Stream class39_sub6 = new Stream(4);
				class39_sub6.writeByte((byte) -28, 4);
				class39_sub6.writeByte((byte) -28, Applet_Sub1.aByte1);
				class39_sub6.writeShort(0);
				Deque.aClass16_923.write(-1, class39_sub6.buffer, 4, 0);
			} catch (java.io.IOException ioexception) {
				try {
					Deque.aClass16_923.killThread(-2158);
				} catch (Exception exception) {
					/* empty */
				}
				Class65.anInt1138++;
				Deque.aClass16_923 = null;
			}
		}
		Class40.anInt748 = 0;
		PacketParser.aLong1063 = Class2.method51(103);
	}

	public static Class39_Sub5_Sub10_Sub4 method503(Class9 class9, int i, int i_0_, boolean bool) {
		if (!client.method36(i_0_, i, (byte) 29, class9))
			return null;
		return PacketParser.method1036(false);
	}

	public static RSInterface method504(int i, int i_1_, int i_2_, RSInterface class39_sub5_sub17, RSInterface class39_sub5_sub17_3_) {
		RSInterface class39_sub5_sub17_4_ = Class39_Sub5_Sub7.method585(class39_sub5_sub17_3_.anInt2084, i, class39_sub5_sub17_3_.anInt2104, (Class62_Sub1.interfaceCache[(class39_sub5_sub17_3_.anInt2084 >> 16)]), i_1_, class39_sub5_sub17_3_.anInt2064, class39_sub5_sub17_3_.anInt2015, class39_sub5_sub17, i_2_, 0, -123, class39_sub5_sub17_3_.anInt1994);
		if (class39_sub5_sub17_4_ != null)
			return class39_sub5_sub17_4_;
		if (class39_sub5_sub17_3_.aClass39_Sub5_Sub17Array2025 != null)
			class39_sub5_sub17_4_ = Class39_Sub5_Sub7.method585(class39_sub5_sub17_3_.anInt2084, i, class39_sub5_sub17_3_.anInt2104, (class39_sub5_sub17_3_.aClass39_Sub5_Sub17Array2025), i_1_, class39_sub5_sub17_3_.anInt2064, class39_sub5_sub17_3_.anInt2015, class39_sub5_sub17, 0, 0, -114, class39_sub5_sub17_3_.anInt1994);
		return class39_sub5_sub17_4_;
	}

	public static int method505(int i, byte i_5_, int i_6_) {
		Class39_Sub13 class39_sub13 = ((Class39_Sub13) Class14.aClass19_213.method245((byte) -19, (long) i_6_));
		if (class39_sub13 == null)
			return 0;
		if (i == -1)
			return 0;
		int i_7_ = 0;
		for (int i_8_ = 0; i_8_ < class39_sub13.anIntArray1504.length; i_8_++) {
			if (i == class39_sub13.anIntArray1505[i_8_])
				i_7_ += class39_sub13.anIntArray1504[i_8_];
		}
		return i_7_;
	}

	public static int calculateOverlayShade(int i, int i_9_, byte i_10_) {
		if (i == -2)
			return 12345678;
		if (i == -1) {
			if (i_9_ < 0)
				i_9_ = 0;
			else if (i_9_ > 127)
				i_9_ = 127;
			i_9_ = -i_9_ + 127;
			return i_9_;
		}
		i_9_ = i_9_ * (i & 0x7f) / 128;
		if (i_9_ >= 2) {
			if (i_9_ > 126)
				i_9_ = 126;
		} else
			i_9_ = 2;
		return (i & 0xff80) + i_9_;
	}

	static {
		aClass3_2236 = Class39_Sub5_Sub9.createJString(103, "Anmelde)2Zeitlimit -Uberschritten)3");
		anIntArrayArray2233 = (new int[][] { { 6798, 107, 10283, 16, 4797, 7744, 5799, 4634, 33697, 22433, 2983, 54193 }, { 8741, 12, 64030, 43162, 7735, 8404, 1701, 38430, 24094, 10153, 56621, 4783, 1341, 16578, 35003, 25239 }, { 25238, 8742, 12, 64030, 43162, 7735, 8404, 1701, 38430, 24094, 10153, 56621, 4783, 1341, 16578, 35003 }, { 4626, 11146, 6439, 12, 4758, 10270 }, { 4550, 4537, 5681, 5673, 5790, 6806, 8076, 4574 } });
		aClass3_2234 = Class39_Sub5_Sub9.createJString(110, "Ung-Ultiges Anmelde)2Paket)3");
		aClass39_Sub5_Sub4_Sub6Array2240 = new Model[4];
		aClass39_Sub5_Sub4_Sub4_Sub1Array2241 = new Class39_Sub5_Sub4_Sub4_Sub1[32768];
		anInt2242 = 0;
		aClass3_2244 = Class39_Sub5_Sub9.createJString(103, "Diese Welt ist voll)3");
		aClass3_2246 = Class39_Sub5_Sub9.createJString(108, "@or2@");
		aClass3_2249 = Class39_Sub5_Sub9.createJString(122, "Bitte starten Sie eine Mitgliedschaft");
	}
}
